<%@ Control Language="C#"  %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.Nitobi2" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>

<swf:BizProc runat="server" ID="cpArt2" factoryName="genericArticles">
	<ParentBizProc id="$_bizProcId$" fieldName="id" dataId="pid"  />
</swf:BizProc>
<div id="article" class="articlebox">
	<h1><swf:ReadOnlyText CssClass="title" ID="title" runat="server" /></h1>
	<swf:ReadOnlyText CssClass="author" ID="authorDisplayName" runat="server" />
	<swf:ReadOnlyText CssClass="updateDate" ID="publishDisplayDate" runat="server" />
	<div class="mainMediaArea">
		<asp:Image CssClass="media" ID="primaryPicture_name" runat="server" ImageUrl="/$mediaCacheName$/$imageRes$/$primaryPicture.name$" EnableViewState="false"/><br />
		<swf:ReadOnlyText CssClass="caption" ID="primaryPicture_caption" runat="server" />
	</div>
	<swf:ReadOnlyText CssClass="body" ID="body" runat="server"  Width="100%" Height="100%" />
</div>
<h3><asp:Label ID="_lblAlbumLbl" runat="server" >Child Article List</asp:Label></h3>
<div id="childArticles">
	<snc:ComplexBizObjListDisplay ID="childPhotos" runat="server" 
		ReadOnlyTemplate="Articles.Gui.AspNet.ArticleListDisplay-PictureOnly"
		ParentBizProcIds="cpArt2" >
		<macros>
			<Entry name="imageRes" type="String">Thumbnail</Entry>
			<Entry name="navLink" type="String">$CmpSetting(sitePath)$/articles/$pid$_$id$.aspx</Entry>
		</macros>
	</snc:ComplexBizObjListDisplay>
</div>
